﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BUS;

namespace Demo_CSDL
{
    public partial class InPut01 : Form
    {
        public InPut01()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string _input = txtInput.Text;
            pbxwatting.Visible = true;
            DataTable dt = BenhNhanBUS.LayDanhSachBenhNhan(_input);
            pbxwatting.Visible = false;
            if (dt.Rows.Count == 0)
            {
                OutPut01 frm1 = new OutPut01();
                frm1.ShowDialog();
            }
            else
            {
                OutPut1_1 frm2 = new OutPut1_1();
                frm2.ShowDialog();
            }
        }
    }
}
